package com.emep.changzhi.analyse.repository.error;

import com.emep.changzhi.analyse.entity.error.AirQuality;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import java.util.List;

/**
 * @author xy
 * @Description: 空气质量异常持久层
 * @date 2018/2/27 11:39
 * @version V1.0
 */

public interface AirQualityRepository extends CrudRepository<AirQuality, Long> {

    @Query("select * from info_air_quality limit :pageSize")
    List<AirQuality> airQualityHome(@Param("pageSize") Integer pageSize);
    @Query("select * from info_air_quality where token(id)>token(:id) limit :pageSize")
    List<AirQuality> airQualityFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
